package com.lancoo.znbkxx.teacher.base

import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter


/**
 * @author : Admin
 * @date   : 2019/7/26 9:15
 * @desc   :
 */
class BaseVmFragmentPagerAdapter(private val fm: FragmentManager, private val fragmentList: MutableList<BaseVMFragment<*, *>>, behavior: Int) : FragmentPagerAdapter(fm, behavior) {

    override fun getItem(position: Int): Fragment {
        return fragmentList[position]
    }

    override fun getCount(): Int {
        return fragmentList.size
    }

}